#include <p24FJ32GA002.h>
#include <stdio.h>

unsigned int r1=0x00;
unsigned int r2=0x00;
unsigned int r3=0x00;
unsigned int r4=0x00;

void DELAY_5MS(void){
r1=0x00;
	while (r1<0x999){
	r1++;
	}
}

void DELAY_15MS(void){
r2=0x00;
	while (r2<0x1CCB){
	r2++;
	}
}

void DELAY_MS(unsigned int b){
b=b*0x1EB;
r3=0x00;
	while (r3<b){
	r3++;
	}
}

void DELAY_40US(void){
r4=0x00;
	while (r4<0xD){
	r4++;
	}
}